package com.ricohgag.entity.custom;


/**
 * @author ricohgag
 * @date 2018/9/5 10:18
 */
public class GoodsTools{
    private Integer current;
    private Integer catalog;
    private Integer priceD;
    private Integer sort;
    private String name;

    private final int[] price = {0, 100, 400, 1000, 2000, 999999999};

    public String[] getOrderStr() {
        return orderStr;
    }

    private final String[] orderStr = {"add_time", "click_count", "sell_price", "sell_price asc"};

    public int[] getPrice() {
        return price;
    }

    public Integer getCurrent() {
        if(current == null){
            current = 1;
        }
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }
    public Integer getCatalog() {
        if(catalog == null){
            catalog = -1;
        }
        return catalog;
    }

    public void setCatalog(Integer catalog) {
        this.catalog = catalog;
    }

    public Integer getPriceD() {
        if(priceD == null){
            priceD = -1;
        }
        return priceD;
    }

    public void setPriceD(Integer priceD) {
        this.priceD = priceD;
    }

    public Integer getSort() {
        if(sort == null){
            sort = 0;
        }
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getName() {
        if(name == null){
            name = "";
        }
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "GoodsListTools{" +
                "current=" + current +
                ", catalog=" + catalog +
                ", priceD=" + priceD +
                ", sort=" + sort +
                ", name='" + name + '\'' +
                '}';
    }
}
